/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Interfaz;

import Dominio.Sistema;
import javax.swing.JDialog;
import javax.swing.JOptionPane;

/**
 *
 * @author 146122
 */
public class VentanaMenu extends javax.swing.JFrame {
    
    //atributo
    private Dominio.Sistema sistema;
    /**
     * Creates new form VentanaMenu
     */
    public VentanaMenu(Dominio.Sistema pSistema) {
        initComponents();
        sistema = pSistema;
    }

    public Sistema getSistema() {
        return sistema;
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenu3 = new javax.swing.JMenu();
        mniABMJugadores = new javax.swing.JMenuItem();
        mniRanking = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setMinimumSize(new java.awt.Dimension(600, 400));
        getContentPane().setLayout(null);

        jMenu1.setText("Opciones Ingreso");

        jMenu3.setText("Jugadores");

        mniABMJugadores.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_J, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        mniABMJugadores.setText("ABM Jugadores");
        mniABMJugadores.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mniABMJugadoresActionPerformed(evt);
            }
        });
        jMenu3.add(mniABMJugadores);

        mniRanking.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_R, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        mniRanking.setText("Ranking");
        mniRanking.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mniRankingActionPerformed(evt);
            }
        });
        jMenu3.add(mniRanking);

        jMenu1.add(jMenu3);

        jMenuBar1.add(jMenu1);

        setJMenuBar(jMenuBar1);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void mniABMJugadoresActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mniABMJugadoresActionPerformed
        // TODO add your handling code here:
        ABMJugadores v = new ABMJugadores(sistema);
        v.setVisible(true);
    }//GEN-LAST:event_mniABMJugadoresActionPerformed

    private void mniRankingActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mniRankingActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_mniRankingActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem mniABMJugadores;
    private javax.swing.JMenuItem mniRanking;
    // End of variables declaration//GEN-END:variables
}
